﻿namespace Pp.Domain.Mappings
{
    using Model;

    public sealed class FollowMap : EntityMap<Follow>
    {
        public FollowMap()
        {
            Table("Follows");
            DiscriminateSubClassesOnColumn("Type");
            References(d => d.Follower, "FollowerId").LazyLoad();
            Map(d => d.IsPassive);
            Map(d => d.Reason);
        }
    }
}